package com.gzhryc.system.dao.enums;


public class RoleEnum {
	
	public enum RoleCode{
			
			SysAuthorizer(90011, "系统授权岗"), SysOperator(90012, "系统操作岗"), TaskAuthorizer(90021, "任务授权岗"), TaskOperator(90022, "任务操作岗"), SysMonitoring(90031, "系统监控岗"),EmergencyAuthorizer(90041,"应急授权岗");
			
			private Integer index;
			private String note;
			
			RoleCode(Integer index,String note){
				this.index = index;
				this.note = note;
			}
			
			public Integer index() {
				return index;
			}
			
			public String note() {
				return note;
			}
			
			public static String note(Integer index){
				RoleCode[] temp = RoleCode.values();
				for(int i=0;i<temp.length;i++){
					RoleCode item = temp[i];
					if(item.index.equals(index)){
						return item.note;
					}
				}
				return null;
			}
		}
}
